package com.cc8w;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableDubbo //开启dubbo的自动配置
@MapperScan("com.cc8w.home.mapper") //扫描mapper接口
@EnableTransactionManagement
public class SpringbootDubooProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDubooProviderApplication.class, args);
    }

}

/**
 * Springboot整合dubbo的provider 步骤
 * 1.创建项目
 * 2.添加相关依赖
 * 3.写配置文件
 * 4.写dubbo接口项目的实现（在写service实现类是，有个注解@Service是dubbo的）
 * 5.项目main入口文件配置自动配置dubbo
 *
 *
 */
